package cn.itsource.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @program fccar-two
 * @Description 配置到位置文件的内容
 * @Author TT
 * @Date 2024/09/05 16:32
 * @Version 1.0
 */
@Data
@ConfigurationProperties(prefix = "wechat") //配置到位置文件的内容
@Component
public class WechatProperties {
    private String appid;

    private String secret;

    public static String WUrl="https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code";
    //appid 小程序id
    //private static String appid="wx853b509f586dddea";
    //secret 小程序密钥
    //private static final String secret="18d921785d87e4d74466a57c8b2b52b4";
}
